import axios from 'axios'

const getCode = async () => {
  const { data: res } = await axios.get('getCaptcha')
  if (res.code === 200) {
    return res.data
  }
}

export { getCode }
